package com.yyds.blackmagic.mapper;

import com.yyds.blackmagic.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author ccc
 * @Date 2021/12/13
 * @Descripton
 */
@Mapper
public interface UserMapper {
    List<User> selectAll();

    User selectByUsername(String username);

    int insertUser(User user);

    int updateUser(User user);

    int deleteUser(int id);
}
